<!--<?php
print <<<EOT
-->

<script>
<!--

function pt2() {
	if (CheckContactForm(form1)) {
	//if (true) {
	var firstname2 = form1.contactfirstname.value;
	var lastname2 = form1.contactlastname.value;
	
	var contactaddress2 = form1.contactaddress.value;
	var contactcity2 = form1.contactcity.value;
	var stateid2 = form1.stateid.value;
	var countryid2 = form1.countryid.value;
	var contactpostal2 = form1.contactpostal.value;
	var contactphone2 = form1.contactphone.value;
	var contactemail2 = form1.contactemail.value;
	//var contactpreference2 = form1.contactpreference.value;
	
	a= document.getElementsByName("contactpreference") 
	
	if(a[0].checked) {
		var contactpreference2 = 'Email';
	} else if(a[1].checked) {
		var contactpreference2 = 'Phone';
	}
	
	var contactcomments2 = form1.contactcomments.value;

	var url = 'printer.php?page=contactus';
	url = url 
		  + '&firstname=' + firstname2
		  + '&lastname=' + lastname2
		  + '&contactaddress=' + contactaddress2
		  + '&contactcity=' + contactcity2
		  + '&stateid=' + stateid2
		  + '&countryid=' + countryid2
		  + '&contactpostal=' + contactpostal2
		  + '&contactphone=' + contactphone2
		  + '&contactemail=' + contactemail2
		  + '&contactpreference=' + contactpreference2
		  + '&contactcomments=' + contactcomments2;
	
	MM_openBrWindow(url,'printerfriendly','scrollbars=yes,width=600,height=500');
	}
}

//-->
</script>

        <tr>
          <td background="./images/colour/jf_colour_gold_100.gif" width="1"><img src="./images/spacer.gif" width="1" height="1" alt=""></td>
          <td bgcolor="FFFFFF" width="10"><img src="./images/spacer.gif" width="10" height="1" alt=""></td>
          <td bgcolor="FFFFFF" width="720" align="left" valign="top"><div><img name="" src="./images/spacer.gif" width="720" height="10" alt=""></div>
            <table width="720" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="150" background="./images/nav/jf_nav_main_bkgd.gif" align="left" valign="top"><table width="150" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td><a href="index.php"><img src="./images/nav/jf_nav_logo.gif" width="150" height="210" alt="jans2en furniture" border="0"></a></td>
                    </tr>

<!--
EOT;
foreach ($LEFT_MENU_ARY as $k=>$v) { 
    if ($menu_id == $k) { 
print <<<EOT
-->
					<tr>
                      <td><a href="{$v['url']}"><img src="./images/nav/{$v['pic']}-active.gif" alt="{$v['name']}" name="jf_nav_menu_$k" width="150" height="20" id="jf_nav_menu_$k" border="0"></a></td>
                    </tr>


<!--
EOT;
	} else {
print <<<EOT
--> 

					<tr>
                      <td><a href="{$v['url']}" onMouseOver="MM_swapImage('jf_nav_menu_$k','','./images/nav/{$v['pic']}-over.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="./images/nav/{$v['pic']}.gif" alt="{$v['name']}" name="jf_nav_menu_$k" width="150" height="20" id="jf_nav_menu_$k" border="0"></a></td>
                    </tr>

<!--
EOT;
	}
} 
print <<<EOT
--> 

                  </table></td>
                <td background="./images/colour/jf_colour_navy_100.gif" width="1"><img name="" src="./images/spacer.gif" width="1" height="1" alt=""></td>
                <td width="568" align="left" valign="top" background="./images/colour/jf_colour_navy_07.gif"><table width="568" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td background="./images/colour/jf_colour_navy_100.gif" height="1"><img name="" src="./images/spacer.gif" width="1" height="1" alt=""></td>
                    </tr>
                    <tr>
                      <td bgcolor="FFFFFF" align="left" valign="middle" class="breadcrumb" height="14">&nbsp;<a href='index.php'>Home</a>&gt;<span class='breadcrumbActive'>Contact Us</span> </td>
                    </tr>
                  </table>
                  <div><img src="{$guide_pic}" alt="How To Order" name="jf_section_header_placer" width="568" height="95" id="jf_section_header_placer"></div>
                  <div><img name="" src="./images/spacer.gif" width="568" height="4" alt=""></div>
                  <div align="right"><a href="javascript:;" onClick="pt2()" onMouseOver="MM_swapImage('jf_button_printer_friendly','','./images/button/jf_button_printer_friendly-over.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="./images/button/jf_button_printer_friendly.gif" alt="Printer Friendly" name="jf_button_printer_friendly" width="80" height="13" border="0" id="jf_button_printer_friendly"></a></div>
                  <div><img name="" src="./images/spacer.gif" width="568" height="4" alt=""></div>
                  
                  <div><img name="" src="./images/spacer.gif" width="568" height="4" alt=""></div>
                  <table width="568" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="5"><img name="" src="./images/spacer.gif" width="5" height="5" alt=""></td>
                      <td bgcolor="FFFFFF" width="10"><img name="" src="./images/spacer.gif" width="10" height="10" alt=""></td>
                      <td bgcolor="FFFFFF" width="538"><img name="" src="./images/spacer.gif" width="538" height="10" alt=""></td>
                      <td bgcolor="FFFFFF" width="10"><img name="" src="./images/spacer.gif" width="10" height="10" alt=""></td>
                      <td width="1" align="left" valign="top" background="./images/colour/jf_colour_navy_15.gif"><img name="" src="./images/colour/jf_colour_navy_07.gif" width="1" height="1" alt=""></td>
                      <td width="4"><img name="" src="./images/spacer.gif" width="4" height="4" alt=""></td>
                    </tr>
                    <tr>
                      <td width="5"><img name="" src="./images/spacer.gif" width="5" height="5" alt=""></td>
                      <td bgcolor="FFFFFF" width="10"><img name="" src="./images/spacer.gif" width="10" height="245" alt=""></td>
                      <td bgcolor="FFFFFF" width="538" class="text" align="left" valign="top">
                        <table width="538" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td rowspan="2" width="150" align="left" valign="top"><img src="{$content_pic}" alt="Image of Antique Map" name="jf_content_images_contactus" width="148" class="picture" id="jf_content_images_contactus"></td>
                            <td rowspan="2" width="5"><img name="" src="./images/spacer.gif" width="5" height="5" alt=""></td>
                            <td width="383" align="left" valign="top">

<!--
EOT;
if ($email_send) {
print <<<EOT
--> 

                            <div>
                            Thank you for filling out the form.<br>
                            We will contact you as soon as possible.
                            </div>

<!--
EOT;
} else {
print <<<EOT
--> 
                            
                            <form method="post" name="form1" action="contactus.php" onSubmit="return CheckContactForm(this)">
		                    <table width="100%">
		                        <tr><td colspan=2><span id="msg_area"></span></td></tr>
		                        <tr>
		                            <td align="left" colspan=2><div class="titles">We thank you for your interest in our products. </div></td>
		                        </tr>
		                        <tr>
		                            <td align="left" colspan=2>Please fill out the form below and we will refer you to the closest available dealer. If you would like to become our dealer, click <a href="register.php">here</a></td>
		                        </tr>
		                        <tr><td colspan=2  height=5></td></tr>
		                        
		                        
		                        <tr>
		                            <td align="right" width=200>First Name:</td>
		                            <td align="left"><input type="text" name="contactfirstname" class="form" size="30"></td>
		                        </tr>
		                        <tr>
		                            <td align="right">Last Name:</td>
		                            <td align="left"><input type="text" name="contactlastname" class="form" size="30"> <span class="form_red">*</span></td>
		                        </tr>
		                        <tr>
		                            <td align="right">Address:</td>
		                            <td align="left"><input type="text" name="contactaddress" class="form" size="30"> <span class="form_red">*</span></td>
		                        </tr>
		                        
		                        <tr>
		                            <td align="right">City:</td>
		                            <td align="left"><input type="text" name="contactcity" class="form" size="30"> <span class="form_red">*</span></td>
		                        </tr>
		                        <tr>
		                            <td align="right">Province/State:</td>
		                            <td align="left">
		                            <select name="stateid" class="form">
		                              <option value="" selected>---Please Select---</option>
		                              $state_select
		                            </select>
		                          </td>
		                        </tr>
		                        <tr>
		                            <td align="right">Country:</td>
		                            <td align="left">
		                            <select name="countryid" class="form">		
		                              <option value="" selected>---Please Select---</option>                     
                                      $country_select		                              
		                            </select> <span class="form_red">*</span>
		                            </td>
		                        </tr>
		                        <tr>
		                            <td align="right">Postal/Zip Code:</td>
		                            <td align="left"><input type="text" name="contactpostal" class="form" size="30"></td>
		                        </tr>
		                        <tr>
		                            <td align="right">Phone:</td>
		                            <td align="left"><input type="text" name="contactphone" class="form" size="30"> <span class="form_red">*</span></td>
		                        </tr>
		                        <tr>
		                            <td align="right">Email:</td>
		                            <td align="left"><input type="text" name="contactemail" class="form" size="30"> <span class="form_red">*</span></td>
		                        </tr>
		                        <tr>
		                            <td align="right">Confirm Email:</td>
		                            <td align="left"><input type="text" name="contactconfirmemail" class="form" size="30"> <span class="form_red">*</span></td>
		                        </tr>
		                        <tr>
		                            <td align="right">Preference:</td>
		                            <td align="left">
		                            <input name="contactpreference" type="radio" value="Email" checked> 
									&nbsp;Email &nbsp;&nbsp;
									<input name="contactpreference" type="radio" value="Phone"> &nbsp;Phone <span class="form_red">*</span>
		                            </td>
		                        </tr>
		                        
		                        <tr valign="top">
		                            <td align="right">Comments:</td>
		                            <td align="left"><textarea class="form" name="contactcomments" cols="53" rows="4"></textarea></td>
		                        </tr>                        
		                        <tr>
		                            <td align="right" colspan=2>
		                                <input type="hidden" name="act" value="contact">		                                
		                                <input type="image" onclick="this.submit();" onMouseOver="MM_swapImage('jf_button_send','','./images/button/jf_button_send-over.gif',1)" onMouseOut="MM_swapImgRestore()" src="./images/button/jf_button_send.gif" alt="Send" name="jf_button_send" width="90" height="20" border="0" id="jf_button_send">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		                            </td>
		                        </tr>
		                        <tr>
		                            <td align="left" colspan=2>
		                                Once your inquiry has been received, you can expect a response from us or a dealer within seven (7) business days.<br><br>
		                                Legal Notice: By submitting this form you have agreed to allow us to pass on your contact information to a jans2en furniture dealer.
		                            </td>
		                        </tr>                         
		                    </table>
		                    </form>
                         
<!--
EOT;
}
print <<<EOT
-->  		                    
		                       
                            </td>
                          </tr>
                          <tr>
                            <td align="right" valign="bottom"><div class="paragraphSpacer"><img name="" src="./images/spacer.gif" width="0" height="0" alt=""></div>
                              <div align="right"><img src="./images/colour/jf_colour_gold_100.gif" alt="Gold Accent" name="jf_colour_gold_100" width="10" height="10" id="jf_colour_gold_100"></div></td>
                          </tr>
                        </table></td>
                      <td bgcolor="FFFFFF" width="10"><img name="" src="./images/spacer.gif" width="10" height="245" alt=""></td>
                      <td width="1" align="left" valign="top" background="./images/colour/jf_colour_navy_15.gif"><img name="" src="./images/colour/jf_colour_navy_07.gif" width="1" height="1" alt=""></td>
                      <td width="4"><img name="" src="./images/spacer.gif" width="4" height="4" alt=""></td>
                    </tr>
                    <tr>
                      <td width="5"><img name="" src="./images/spacer.gif" width="5" height="5" alt=""></td>
                      <td bgcolor="FFFFFF" width="10"><img name="" src="./images/spacer.gif" width="10" height="10" alt=""></td>
                      <td bgcolor="FFFFFF" width="538"><img name="" src="./images/spacer.gif" width="538" height="10" alt=""></td>
                      <td bgcolor="FFFFFF" width="10"><img name="" src="./images/spacer.gif" width="10" height="10" alt=""></td>
                      <td width="1" align="left" valign="top" background="./images/colour/jf_colour_navy_15.gif"><img name="" src="./images/colour/jf_colour_navy_07.gif" width="1" height="1" alt=""></td>
                      <td width="4"><img name="" src="./images/spacer.gif" width="4" height="4" alt=""></td>
                    </tr>
                    <tr>
                      <td width="5"><img name="" src="./images/spacer.gif" width="5" height="1" alt=""></td>
                      <td width="10" align="left" valign="top" background="./images/colour/jf_colour_navy_15.gif"><img name="" src="./images/colour/jf_colour_navy_07.gif" width="1" height="1" alt=""></td>
                      <td background="./images/colour/jf_colour_navy_15.gif" width="538"><img name="" src="./images/spacer.gif" width="538" height="1" alt=""></td>
                      <td background="./images/colour/jf_colour_navy_15.gif" width="10"><img name="" src="./images/spacer.gif" width="10" height="1" alt=""></td>
                      <td width="1" align="left" valign="top" background="./images/colour/jf_colour_navy_15.gif"><img name="" src="./images/colour/jf_colour_navy_15.gif" width="1" height="1" alt=""></td>
                      <td width="4"><img name="" src="./images/spacer.gif" width="4" height="1" alt=""></td>
                    </tr>
                  </table>
                  <div><img name="" src="./images/spacer.gif" width="568" height="4" alt=""></div>
                  
                  <div><img name="" src="./images/spacer.gif" width="10" height="2" alt=""></div></td>
                <td background="./images/colour/jf_colour_navy_100.gif" width="1"><img name="" src="./images/spacer.gif" width="1" height="1" alt=""></td>
              </tr>
              <tr>
                <td background="./images/nav/jf_nav_main_bkgd.gif" wid><img name="" src="./images/spacer.gif" width="150" height="20" alt=""></td>
                <td background="./images/colour/jf_colour_navy_100.gif" width="1"><img name="" src="./images/spacer.gif" width="1" height="1" alt=""></td>
                <td><table width="568" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td background="./images/colour/jf_colour_navy_100.gif" height="1"><img name="" src="./images/spacer.gif" width="1" height="1" alt=""></td>
                      <td background="./images/colour/jf_colour_navy_100.gif" height="1"><img name="" src="./images/spacer.gif" width="1" height="1" alt=""></td>
                    </tr>
                    <tr>
                      <td align="left" valign="middle" height="18"></td>
                      <td align="right" valign="middle" height="18"><a href="#top" onMouseOver="MM_swapImage('jf_button_back_to_top','','./images/button/jf_button_back_to_top-over.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="./images/button/jf_button_back_to_top.gif" alt="Back to top" name="jf_button_back_to_top" width="70" height="13" border="0" id="jf_button_back_to_top"></a></td>
                    </tr>
                    <tr>
                      <td background="./images/colour/jf_colour_navy_100.gif" height="1"><img name="" src="./images/spacer.gif" width="1" height="1" alt=""></td>
                      <td background="./images/colour/jf_colour_navy_100.gif" height="1"><img name="" src="./images/spacer.gif" width="1" height="1" alt=""></td>
                    </tr>
                  </table></td>
                <td background="./images/colour/jf_colour_navy_100.gif" width="1"><img name="" src="./images/spacer.gif" width="1" height="1" alt=""></td>
              </tr>
            </table>
            <div><img name="" src="./images/spacer.gif" width="720" height="10" alt=""></div></td>
          <td bgcolor="FFFFFF" width="10"><img src="./images/spacer.gif" width="10" height="10" alt=""></td>
          <td background="./images/colour/jf_colour_gold_100.gif" width="1"><img src="./images/spacer.gif" width="1" height="1" alt=""></td>
        </tr>
        
<!--
EOT;
?>-->